import Http from "../Http";
import {stringify} from "qs";

// 预约课程 增删改查
export default {
    lists(data = {}) {
        return Http.get("/tms/course/user", data)
    },
    info(id) {
        return Http.get(`/tms/course/user/${id}`)
    },
    destroy(id) {
        return Http.delete(`/tms/course/user/${id}`)
    },
    // 用户预约课程
    create(data) {
        return Http.post("/tms/course/user/addMake", stringify(data))
    },
    // 可选状态，0待通过，1成功预约，2被拒绝的预约，3完成的预约
    setStatus(data) {
        return Http.put("/tms/course/user/updateMakeStatus", stringify(data))
    }
}
